﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _34继承的练习
{
    enum RenSex
    {
        男,
        女
    }
    class Ren
    {
        //姓名，性别，年龄，学习，吃饭，用电脑
        public string Name { get; set; }
        public int Age { get; set; }
        public RenSex Sex { get; set; }
        //方法
        public void Sat()
        {
            Console.WriteLine("学习");
        }
        public void Cat()
        {
            Console.WriteLine("吃饭");
        }
        public void Yat()
        {
            Console.WriteLine("用电脑");
        }
        
    }
}
